﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="brandManager.aspx.cs" Inherits="WebSite.crm.goods.brandManager" %>


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">  
<html xmlns="http://www.w3.org/1999/xhtml" >
<head id="Head1" runat="server">
    <title>福利点点通 </title>

         <script src="/crm/js/common.js" type="text/javascript"></script>
</head>
<body>
    <form id="form1" runat="server">
    <ext:PageManager ID="PageManager1" runat="server" />
      <ext:SimpleForm ID="extForm1" runat="server" BodyPadding="5px"   
            EnableBackgroundColor="false" Title="商品列表"  ShowHeader="false" >
              <Items>
                <ext:Label ID="lblSpace" runat="server" Text="" Height="20px"></ext:Label>
            <ext:Panel ID="Panel2" ShowHeader="false"  CssClass="x-form-item" ShowBorder="false" Layout="Column" runat="server">
             <Items>
 
            <ext:Label ID="lblKeywords"  Width="80px"    runat="server" Text="&nbsp;&nbsp;关键字："></ext:Label>
            <ext:TextBox runat="server" ID="txtKeywords"   MaxLength="100" Label="关键字" ></ext:TextBox>
                   <ext:Button ID="btnSearch" Text="搜索"  CssClass="mleft mright" runat="server" 
                     OnClick="btnSearch_Click"></ext:Button>
                  </Items>
         </ext:Panel>

     </Items>
     
   </ext:SimpleForm>
         <ext:Panel ID="Panel8" ShowBorder="True" ShowHeader="false" BoxFlex="1"  CssClass="x-form-item"  Layout="Fit"
                runat="server">
                <Toolbars>
                    <ext:Toolbar ID="Toolbar2" runat="server">
                        <Items>
                   <ext:Button ID="btnBrachDeleted" runat="server" Text="批量删除"  OnClick="btnBrachDeleted_Click1"
                    ConfirmTarget="self" ConfirmText="确定要删除选中的分类吗？" >
                 </ext:Button>
                  <ext:ToolbarSeparator ID="ToolbarSeparator1" runat="server">
                            </ext:ToolbarSeparator>
                 
               
                        </Items>
                    </ext:Toolbar>
                </Toolbars>
                <Items>
    </Items>
    </ext:Panel>

         <ext:Grid ID="Grid1" Title="查询结果" PageSize="50" ShowBorder="false"  CssClass="x-form-item"   AllowPaging="true" SortColumn="brandName" SortDirection="ASC"     
                        OnPageIndexChange="Grid1_PageIndexChange" ShowHeader="False" runat="server" EnableCheckBoxSelect="True"   AllowSorting="true"    IsDatabasePaging="false" 
                        DataKeyNames="brandId" OnSort="Grid1_Sort" EnableRowNumber="True">

        <Columns>
        

            
            <ext:BoundField Width="200px" ColumnID="brandName" SortField="brandName" DataField="brandName" DataFormatString="{0}"
                HeaderText="品牌名称" />

            <ext:BoundField Width="100px" ColumnID="brandOrder" SortField="brandOrder" DataField="brandOrder" DataFormatString="{0}"
                HeaderText="排 序" />
           <ext:CheckBoxField Width="60px" RenderAsStaticField="true" SortField="visible" DataField="visible" HeaderText="是否显示" />
        
          <ext:TemplateField Width="180px" SortField="" HeaderText="操作">
                <ItemTemplate>
                      <a href="#" onclick="openNewTab('BrandAdd','/crm/goods/brandAdd.aspx?bid=<%# Eval("brandId") %>','品牌编辑')"; title="编辑">[编辑]</a>
                     
                       <a href="brandManager.aspx?action=del&amp;bid=<%# Eval("brandId") %>"  onclick="return confirm('您确定要删除此品牌吗？');" title="删除">[删除]</a>
                    
                </ItemTemplate>
            </ext:TemplateField>
        </Columns>
    </ext:Grid>
    </form>
</body>
</html>

